using System;
using System.Collections.Generic;
using System.Text;
using Hermes.Framework;

namespace Hermes.Framework.Implementation.Directory
{
    public class TxDirectoryRename : TxOperationTemplate, ITransactableRename
    {
        public TxDirectoryRename(string dstFileName) : base(dstFileName)
        {

        }

        public void Rename()
        {
            base.Execute(base.srcFileName, base.dstFileName);
        }

        protected override void Operate()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override void Commit()
        {
            throw new Exception("The method or operation is not implemented.");
        }

        public override void Rollback()
        {
            throw new Exception("The method or operation is not implemented.");
        }
    }
}
